import request from '@/utils/request'

import { commonBaseUrl } from '@/utils'

const moduleName = commonBaseUrl('B')
// const moduleNameThree = commonBaseUrl('A')

// 结算:下一步流程需要参数
export function getWFWorkItem(params) {
    return request({
        url: moduleName + 'tfinInfo/getWFWorkItem',
        method: 'get',
        params
    })
}

//  结算送审:项目基础信息 专属信息 站址信息
export function getPrjDetail(params) {
    return request({
        url: moduleName + 'api/adjustment/queryPrjInfo',
        params
    })
}
//  结算送审:物资明细
export function queryAdjustEquipsList(params) {
    return request({
        url: moduleName + 'api/settle_submit/queryAdjustEquipsList',
        params
    })
}

//  结算送审:服務明细
export function queryAdjustServList(params) {
    return request({
        url: moduleName + 'api/settle_submit/queryAdjustServList',
        params
    })
}
export function queryAdjustServListNew(params) {
    return request({
        url: moduleName + 'api/settle_submit/queryAdjustServList',
        params
    })
}
//  结算送审:获取审状态
export function queryPushAudit(params) {
    return request({
        url: moduleName + 'api/material_adjust/queryPushAudit',
        params
    })
}

//  结算送审:撤回
export function queryIfRetractAudit(params) {
    return request({
        url: moduleName + 'api/settle_submit/queryIfRetractAudit',
        method: 'post',
        params,
        showLoading: true
    })
}

//  结算送审:提交
export function updateAduitDatas(data) {
    return request({
        url: moduleName + 'api/settle_submit/updateAduitDatas',
        method: 'post',
        data,
        showLoading: true
    })
}
